<template>
  <div class="match-item">
    <div class="left-img">
      <img src="https://publicqn.saikr.com/edu_question/cover/default2.png" />
    </div>
    <div class="right-introduce">
      <div class="title">
        <p>平面设计赛道</p>
      </div>
      <div class="article">
        <p>
          考察学生对各种设计软件的运用，如Photoshop，根据赛题中设定的企业实际需求，利用图形、文字、色彩等元素进行创造性组合完成设计，如海报、宣传册、包装、标志、品牌形象等。
        </p>
      </div>
      <div class="tips">
        <el-icon color="#ffc54b"><WarningFilled /></el-icon>
        <span>需要报名竞赛</span>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
// import { defineProps } from "vue";

// const props = defineProps({
//   data: {
//     type: Object,
//     default: () => {},
//   },
//   type: {
//     type: String,
//     default: "item",
//   },
// });
</script>

<style lang="scss" scoped>
.match-item {
  margin-top: 30px;
  padding: 20px;
  border: 1px solid #f3f3f3;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: box-shadow 0.2s ease-in;
  &:hover {
    box-shadow: 0px 10px 20px #e1e1e1;
  }
  .left-img {
    flex-basis: 28%;
    border-radius: 20px;
    overflow: hidden;
  }
  .right-introduce {
    flex-basis: 71%;
    margin-left: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: column;
    .title {
      font-size: 18px;
      color: #474b5f;
    }
    .article {
      margin-top: 10px;
      font-size: 14px;
      color: #999;
    }
    .tips {
      margin-top: 30px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      span {
        margin-left: 5px;
      }
    }
  }
}
.card {
  flex-basis: 32%;
  flex-direction: column;
  .right-introduce {
    margin-left: 0;
    .title {
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      margin-top: 10px;
    }
    .article {
      p {
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
    }
  }
}
</style>
